package net.j4love.spring.boot.webmvc.web;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author He Peng
 * @create 2017-05-19 18:18
 * @update 2017-05-19 18:18
 * @see
 */

@WebListener("MyListener")
public class MyListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.err.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%% \r\n MyListener contextInitialized");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.err.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%% \r\n MyListener contextDestroyed");

    }
}
